package com.song.JavaThread_day02.ch2_5;

public class Job implements Runnable{
	
	
	private PrintQueue PrintQueue;
	
	
	
	public Job(PrintQueue printQueue) {
		super();
		PrintQueue = printQueue;
	}



	@Override
	public void run() {
		
		System.out.printf(" %s : Going to Print a docment \n" ,Thread.currentThread().getName());
		
		PrintQueue.printJob(new Object());
		
		System.out.printf(" %s  : the docment has been print\n" , Thread.currentThread().getName());
	}
	

}
